package com.heima.common.exception;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.enums.AppHttpCodeEnum;
import org.springframework.web.bind.annotation.ControllerAdvice;

/**
 * @author 胡慧
 * @title: CostomException
 * @projectName heima-leadnews
 * @description: 自定义异常，
 * 处理不可控异常
 * @date 2021/2/515:38
 */

public class CostomException extends RuntimeException {

    private ResponseResult responseResult;

    public CostomException(ResponseResult responseResult){
        this.responseResult = responseResult;
    }

    public CostomException(AppHttpCodeEnum materialReferenceFail) {

    }

    public ResponseResult getResponseResult(){
        return responseResult;
    }
}